package com.yq.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.yq.entity.Shequ;
import com.yq.dao.ShequDao;
import com.yq.service.ShequService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author IceZhang
 * @since 2020-02-15
 */
@Service
public class ShequServiceImpl extends ServiceImpl<ShequDao, Shequ> implements ShequService {

    @Override
    public Page<Shequ> selectEquipmentCategoryPage(Integer current, Integer size) {
        if(current==null)current=0;
        if(size==null)size=10;
        Page page=new Page(current,size);

        return page.setRecords(baseMapper.selectEquipmentCategoryPage(page));
    }
}
